from src.routers.TMS.tms_xml import TMSRoot, TMSService, TMSBasemap
from src.routers.TMS.tms_tile import TMSTileServer


def BuildTMSRouter(api):
    api.add_resource(TMSRoot, '/<string:servicename>/tms/root.xml')
    api.add_resource(TMSService, '/<string:servicename>/tms/tilemapservice.xml')
    api.add_resource(TMSBasemap, '/<string:servicename>/tms/basemap.xml')
    api.add_resource(TMSTileServer, '/<string:servicename>/tms/basemap/<int:level>/<int:column>/<int:row>.<string:ext>')